Ext.define('Admin.view.main.MainContainerWrap', {
    extend: 'Ext.container.Container',
    xtype: 'maincontainerwrap',
    requires : [
        'Ext.layout.container.HBox'
    ],
    scrollable: 'y',
    layout: {
        type: 'hbox',
        align: 'stretchmax',
        animate: true,
        animatePolicy: {
            x: true,
            width: true
        }
    },
    beforeLayout : function() {
        var me = this,
        height = Ext.Element.getViewportHeight() - 64, 
        navTree = me.down('#navigationTreeList');
        me.minHeight = height;
        navTree.setStyle({
            'min-height': height + 'px'
        });
        me.callParent(arguments);
    }
});
